<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <title>编辑文章</title>
    <meta charset="UTF-8"> 
    <meta name="keywords" content="BWRM"/>
    <meta name="description" content="BWRM"/>  
    <meta name="viewport" content="width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no,viewport-fit=cover"> 
    <link rel="stylesheet" href="../pagesCss/editArticle.css">
    <script src="../pagesJs/jquery.js"></script>
	<script src="../pagesJs/jquery.tmpl.min.js"></script> 
	<script src="../pagesJs/rem2px.js"></script> 
	<script src="../pagesJs/public.js"></script> 
     <style>
        html, body{
            background:rgba(242,245,247,1);
        }
        .editTips{
            display: block;
        }
     </style>
</head>
<body>   
    <div class="nav-header"  >
        <img class="nav-back" src="../pagesImg/nav_back_black.png" alt  onclick="window.history.go(-1); return false;"/>
        <p class="title">编辑文章</p> 
    </div>
    <div class="navHeight"></div>
    <section class="editArticle">
        <p class="edit-title"></p> 
        <div class="edit-context" id="editContentList"></div>
        <div class="edit-footer">
            <div class="edit-footer-item edit-footer-cancel" onclick="exitCancel(event)">取消</div>
            <div class="edit-footer-item edit-footer-save" onclick="exitSave(event)">保存</div>
        </div>
    </section> 
    <!-- cursor 提示 -->
    <section class="settingtips editTips" onclick="hideEditTips(event)">
        <img class="editTips-cursor" src="../pagesImg/edit_modify.png" alt="">
        <p class="editTips-tips">想改哪里<span>点</span>哪里</p>
    </section>
    <!-- 编辑修改文字 弹窗 -->
    <section class="exitsectionwrap">
        <div class="navHeight"></div>
        <div  class="exitSection-input" contenteditable="true"></div>
        <!-- <textarea class="exitSection-input" name="" placeholder="请输入内容！"></textarea> -->
        <div class="exitsection-footer clearfix">
            <div class="exitsec-footer-item left" onclick="tap2cancelContent(event)">取消</div>
            <div class="exitsec-footer-item left" onclick="tap2deleteInput(event)">删除</div>
            <div class="exitsec-footer-item left active" onclick="tap2saveInput(event)">保存</div>
        </div>
    </section>
    <!-- 修改标题 弹窗 -->
    <section class="settingtips exitTitleWrap" onclick="tapHideTitleInput(event)">
        <div class="settingtips-box" onclick="returnNull(event)">
            <div class="title">修改标题</div>
            <div class="exitTitle-inputbox">
                <textarea name="" id="exitTitleInput" ></textarea>
                <div class="asidebox"><span id="exitTitleNum">0</span>/60</div>
            </div>
            <div class="footer">
                <div class="item footer-left" onclick="tapHideTitleInput(event)">取消</div>
                <div class="item footer-right" onclick="tap2SaveTitle(event)">确认</div>
            </div>
        </div>
    </section> 
    <script src="../pagesJs/article/setVideoSrc.js"></script> 
    <script src="../pagesJs/article/audio.js"></script> 
    <script src="../pagesJs/article/editArticle.js"></script> 
    <!--老 文章内容 -->
    <!-- textType 文本类型：1-文字 2-图片 3-音频 -->
    <!-- <script type="text/html" id="editContentListTmpl">  
        {{each(i,v) articleInfo}} 
            {{if v.textType==1}}
                {{if v.isIframe == 1 }}
                <div class="contentitem"  data-type="{{= v.textType}}" data-contxt="{{= v.textContent}}">
                    <div class="opacity0div vedioIframe"></div>
                    {{html  v.textContent}}
                </div>
                {{else}}
                <div class="contentitem"  data-type="{{= v.textType}}" data-contxt="{{= v.textContent}}" >{{html  v.textContent}}</div>
                {{/if}}
            {{else v.textType == 2}}
            <div class="contentitem"  data-type="{{= v.textType}}" data-contxt="{{= v.textContent}}"><img src="{{= v.textContent}}" alt="" srcset=""></div>
            {{else v.textType == 3}} 
            <div class="contentitem"  data-index="{{= i}}" data-type="{{= v.textType}}">
                <div class="opacity0div vedioIframe"></div>
                <div id="js-audio-section" class="audio-section">
                    <div id="js-audio-button" class="audio-button">
                        <div id="js-play" class="play" style="width:40px;height:40px;">
                            <span class="iconfont icon-pcduanbizhixiazaicishutubiao"></span>
                        </div> 
                        
                        <div id="js-pause" class="pause" style="width:40px;height:40px;">
                            <span class="iconfont icon-yinlezanting"></span>
                        </div> 
                    </div>
                    <span id="js-audio-name" class="audio-name">{{= v.textTitle}}</span>
                    <span id="js-audio-duration" class="audio-duration"></span>
                    <audio id="js-audio" data-source="${renderAudio(v.textContent)}" ></audio>
                </div>
            </div>
            
            {{/if}}
        {{/each}} 
    </script> -->
</body> 
</html>